package com.example.zhuangao6xiangm.mvvmUtil;

import androidx.lifecycle.ViewModel;
import androidx.lifecycle.ViewModelProvider;

import org.jetbrains.annotations.NotNull;

public class FragFactory implements ViewModelProvider.Factory {
    @NotNull
    @Override
    public <T extends ViewModel> T create(@NotNull Class<T> modelClass) {
        return (T) new FragViewModel(new MvvmRepostory(new MvvmModel()));
    }
}
